help: ## show this help
	@echo 'usage: make [target] ...'
	@echo ''
	@echo 'targets:'
	@egrep '^(.+)\:\ .*##\ (.+)' ${MAKEFILE_LIST} | sed 's/:.*##/#/' | column -t -c 2 -s '#'
		
gen: ## generate grpc proto for golang
	buf generate

test: ## run all layers tests
	@make test.unit

test.unit: ## run unit tests
	go test ./...

run: ## run app
	go run ./cmd/app/main.go

dev.up: ## run dev environment
	docker-compose -f deployments/dev/docker-compose.yaml up --no-deps --build similarity-compiler

dev.down: ## shutting down dev environment
	docker-compose -f deployments/dev/docker-compose.yaml down --volumes --rmi local